const express = require('express')
const router = express.Router()

const { getHotHotelData, getHotelData, getHotelDetailData } = require('../../controller/web/HotelController')

// 导入分页中间件
const paginationMiddleware = require('../../middleware/paginationMiddleware');

// 获取酒店数据
router.get('/hotel', paginationMiddleware, getHotelData)

// 获取热门酒店数据
router.get('/hotel/hot', getHotHotelData)

// 获取酒店详情数据
router.get('/hotel/detail/:id', getHotelDetailData)

module.exports = router